<?php
class Admin_Form_AddArticle extends Apps_Form {
	public function init() {

		$title = new Zend_Form_Element_Text(
				'title',
				array('label' 		=> 'Title (Vi)',
					  'class'		=> 'input-xxlarger'));
		$title->addFilter(new Zend_Filter_StringTrim());

		$enTitle = new Zend_Form_Element_Text(
				'en_title',
				array('label' 		=> 'Title (En)',
					  'required'	=> true,
					  'class'		=> 'input-xxlarger'));
		$enTitle->addFilter(new Zend_Filter_StringTrim());

		$overview = new Zend_Form_Element_Textarea(
				'overview',
				array('label' 		=> 'Overview (Vi)'));

		$enOverview = new Zend_Form_Element_Textarea(
				'en_overview',
				array('label' 		=> 'Overview (En)'));

		$detail = new Zend_Form_Element_Textarea(
				'detail',
				array('label' 		=> 'Detail (Vi)'));

		$enDetail = new Zend_Form_Element_Textarea(
				'en_detail',
				array('label' 		=> 'Detail (En)'));

		$description = new Zend_Form_Element_Textarea(
				'description',
				array('label' => 'Description',
						'rows'	=> 1,
						'cols'	=> 80));

		$this->addElement($enTitle)
			 ->addElement($title)
			 ->addElement($enOverview)
			 ->addElement($overview)
			 ->addElement($enDetail)
			 ->addElement($detail)
			 ->addElement($description);
		$this->setLegend('Add new');
		$this->makeup();
	}
}